<table class="with-dir" align="center" style="border-spacing:0;background:#fefefe;margin:0;padding:0;text-align:center;vertical-align:top;width:100%">
  <tbody>
    <tr>
      <td class="digest-popular-topic-wrapper with-dir" style="-moz-hyphens:auto;-webkit-hyphens:auto;border-collapse:collapse!important;color:#0a0a0a;hyphens:auto;line-height:1.3;margin:0;padding:0;vertical-align:top;word-wrap:normal">
        <%= digest_custom_html("above_popular_topics") %>

        <% @popular_topics.each_with_index do |t, i| %>
          <%= render partial: "user_notifications/digest/popular_topic", locals: { topic: t } %>

          <% if i < 5 %>
            <%= digest_custom_html("below_post_#{i+1}") %>
          <% end %>
        <% end %>

        <%= digest_custom_html("below_popular_topics") %>
      </td>
    </tr>
  </tbody>
</table>